package com.yulinlin.websocket.node.controller;

import com.corundumstudio.socketio.Configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("config")
@RestController
public class ConfigController {


    @Autowired
    private Configuration configuration;


    @RequestMapping(value = "port")
    public int port(){
        return configuration.getPort();
    }
}
